package io.renren.modules.app.entity;

public enum SubjectTypeEnum {
    A("A","有趣的视角"),
    B("B","有趣的行为"),
    C("C","幽默的表达"),
    D("D", "个体多面性"),;
    private String type;

    private String desc;

    private SubjectTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getDesc(String type) {
        SubjectTypeEnum[] typeEnums = values();
        for (SubjectTypeEnum typeEnum : typeEnums) {
            if (typeEnum.type.equals(type)) {
                return typeEnum.desc;
            }
        }
        return "";
    }
}
